@import './common/var.scss';
@import './mixins/ellipsis.scss';

.lc-field{
  .van-cell__title {
    max-width: 90px;
  }

  .van-cell__value {
    position: relative;
  }

  &__body {
    display: flex;
    align-items: center;
  }

  &__street{
    .van-cell{
      padding: 10px 0;
    }
  }
  &__other{
    .van-cell{
      padding: 10px 0;
    }
  }
  

  &__control {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    resize: none;
    display: block;
    box-sizing: border-box;
    background-color: transparent;

    &:disabled {
      opacity: 1;
      color: $gray-darker;
      background-color: transparent;
    }
 
    &--center {
      text-align: center;
    }

    &--right {
      text-align: right;
    }
    &--left {
      text-align: left;
    }
    /* for ios wechat */
    &[type="date"],
    &[type="time"] {
      min-height: 24px;
    }
  }
  &__placeholder{
    color: #666;
  }
  &__label{
    text-align: left
  }

  &__clear,
  &__icon,
  &__button {
    flex-shrink: 0;
  }
  
  &__clear{
    color: $gray;
    line-height: inherit;
  }

  &__icon {
    padding: 0 10px;
    color: $gray-dark;
    line-height: inherit;
    margin-right: -10px;
  }

  &__action{
    color:$blue;
    margin: 0 -15px;
    padding: 0 20px;
    display: inline-block;
    vertical-align: middle;
  
  }
  &__confirm{
    color:$blue;
    margin: 0 -5px;
    padding: 0 20px;
    display: inline-block;
    vertical-align: middle;
  }


  &__icon .van-icon {
    display: block;
    font-size: 16px;
    color: $gray-dark;
    line-height: inherit;
  }

  &__button {
    padding-left: 10px;
  }
  
  &__desc {
    color: $gray;
    font-size: 12px;
    text-align: left;
  }
  
  &__error-message {
    color: $red;
    font-size: 12px;
    text-align: left;
  }

  &--disabled {
    .lc-field__control {
      color: $gray-dark;
    }
  }
  .van-cell__left-icon {
    color: #999;
    font-size: 12px;
    line-height: 24px;
    margin-left: 5px;
    margin-right: 10px;
  }
  

  &--error {
    .van-cell__title,
    .lc-field__placeholder
    {
      color: $red;
    }
    
    .lc-field__control {
      &,
      &::placeholder {
        color: $red;
      }
    }
    .van-cell__left-icon{
      color: $red;
    }
  }

  &--min-height {
    .lc-field__control {
      min-height: 60px;
    }
  }

  &--label {
    &-center {
      .van-cell__title {
        text-align: center;
      }
    }

    &-right {
      .van-cell__title {
        text-align: right;
      }
    }
  }
  .cell-option{
    .van-cell__title {
      max-width: 100%;
    }

  }
  .tag-span{
    margin-right: 2px;
  }
}
.van-field--error{
  .van-cell__title
  {
    color: $red;
  }
  
}

.lc-desc{
  background-color:#f8f8f8;
  .van-cell{
    background-color:#f8f8f8;
  }
  .van-cell__title {
    max-width: 100%;
  }
  [class*=van-hairline]::after{
    border-bottom-width: 1px;
    color: #eee;
  }
  [class*=lc-field--hairline-dashed]::after{
    border-style: dashed;
    color: #d8d6d6;
    left: 0;
  }
  [class*=lc-field--hairline-solid]::after{
    border-style: solid;
    color: #d8d6d6;
    left: 0;
  }
}

.lc-fullscreen-popup{
  width: 100%;
  height: 100%;
}


.lc-field-cell{
  width: 100%;
  display: flex;
  box-sizing: border-box;
  line-height: 24px;
  position: relative;
  background-color: $white;
  color: $text-color;
  font-size: 14px;
  overflow: hidden;
  &:not(:last-child)::after {
    content: ' ';
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    left: 15px;
    right: 0;
    bottom: 0;
    transform: scaleY(0.5);
    border-bottom: 1px solid $border-color;
  }
}

.lc-tab-break{
  margin:0;
  border: 1px solid #ecf6ff;
  &--label {
    background-color:#ecf6ff !important;
    color: #048efa !important;
    text-align: left;
  } 
}